import type { IUser } from '@/api/model/sysUserModel'
import type { EnumSmsType } from '@/utils/constants'
export interface IMloginParams {
  username: string
  password: string
  grant_type:string
  tenantCode:string
}

export interface IMloginResponse {
  token: string
  userInfo: IUser
  qualifications: IQualifications
  isVip: string
  endTime: string
}

export interface ILoginParams {
  code: string
  encryptedData: string
  iv: string
}

export interface ILoginResponse {
  isAppraiser: boolean
  token: string
  user: IUser
  isVip: string
  endTime: string
  qualifications: IQualifications
}

export interface ISmsParams {
  smsmode: EnumSmsType // 模式
  mobile: number | string | undefined // 手机号
}
export interface ISmsLoginParams {
  grant_type:string
  mobile:string
  captcha:string
  tenantCode:string
}
export interface IForgetOrSetPasswordParams {
  phone: string
  code: string
  password: string
  type: string
}

export interface IUpdateMobileParams {
  code: string
  phone: string
}
export interface IResetPasswordsParams {
  password: string
  phone: string
  oldPassword: string
}

export interface ISmsRegisterAccountParams {
  phone: string
  code: string
  wxCode: string
  password: string
}

export interface IQualifications {
  name: string
  image: string
}

export interface IOneClickLoginParams {
  code: string
}
export interface IAliLoginByCodeParams {
  autoCode: string
  phoneStr: string
}
